package org.wlgzs.shop.service;

import org.wlgzs.shop.bean.Msg;
import org.wlgzs.shop.bean.OrderTransportData;
import org.wlgzs.shop.bean.ShowDate;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @Author: Ben
 * @Date: 2019/5/20 8:55
 * @Project org.wlgzs.shop
 */
public interface IOrderTransportDateService {
    //增加订单信息
    int insertOrderTransportDataService(OrderTransportData orderTransportData);

    //根据订单id删除订单信息
    int deleteOrderTransportDataService(int orderId);

    //根据订单id更改订单信息
    int updateOrderTransportDataService(OrderTransportData orderTransportData);

    //根据用户id查询订单信息
    List<OrderTransportData> selectUserIdOrderTransportDateService(int userId);

    //根据订单id查询订单信息
    OrderTransportData selectOrderIdOrderTransportDateService(int orderId);

    //获取所有订单信息
    List<OrderTransportData> allOrder();

    //批量增加订单
    Msg addAllOrder(List<String> date, HttpSession session);

    //根据userID查询订单
    List<OrderTransportData> selectOrderByUser(int userId);

    //更改订单的状态
    boolean setOrderStatus();

    //更改订单的状态
    boolean setPostion(String postion);

    //根据用户名、商品id、时间改变订单状态
    boolean upDatePostStatus(List<OrderTransportData> list);

    //根据用户名、商品id、时间改变订单状态
    boolean addPostDate(List<OrderTransportData> list);

    //模糊查询订单
    List<OrderTransportData> selectOrder(String date);

    //结束订单
    void endOrder(int orderID);

    //查看已完成订单
    List<OrderTransportData>  selectUserIdFinishOrderTransportDateService(int id);


}
